<?php

namespace App\Models;

class Course extends Base
{
    protected $table = 'courses';


    protected $fillable = [
        'id','year','content'
    ];

    public $timestamps = false;//关闭自动维护

    protected function getList($fields = ['*']){
        $lists = $this->select($fields)->orderBy('id', 'desc')
            ->paginate(config('app.limit'));
        return $lists;
    }

}
